use(["public/javascripts/service/enterpriseInfoService.js",
     "public/javascripts/widget/slider/slider.js",
     "public/javascripts/widget/star/star.js",
    "public/javascripts/widget/picPreview/picPreview.js",
     "public/javascripts/enterpriseInfo/view.js"
    ], function(enterpriseInfoService, SliderComponent, Star, picPreview, jQView) {
    var PageComponent = React.createClass({
        componentDidMount: function() {
            var _this = this;

            picPreview.init();

            jQView.init({preView: _this.preView});
        },
        receiveMsg: function(data) {

        },
        getInitialState: function () {
            return this.props ? this.props : {};
        },
        render:function() {
            var data = this.state.data;
            var enterpriseInfo = data["enterpriseInfo"];

            return ~init;
        },
        preView: function(fileid){
            var _this = this;
            var data = _this.props.data.enterpriseInfo && _this.props.data.enterpriseInfo.files;
            $('#slides').picturePreview({pictureId : fileid}, data);
        }
    });
    if(typeof ReactDOM != "undefined") {
        ReactDOM.render(<PageComponent data={storage}/>, document.getElementById('container'));
    }
    module.exports = PageComponent;
});